package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgFunnyVideoPraise;

public interface YgFunnyVideoPraiseService {

	List<YgFunnyVideoPraise> find();

	int findCount();

	YgFunnyVideoPraise findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int deleteSoft(Long videoId, String userNameOrOpenId);

	int save(YgFunnyVideoPraise ygFunnyVideoPraise);

	int update(YgFunnyVideoPraise ygFunnyVideoPraise);

	int saveOrUpdate(YgFunnyVideoPraise ygFunnyVideoPraise);

	ResultSet<YgFunnyVideoPraise> search(QueryInfo queryInfo, String q);

	Boolean hasPoint(String openId, Long videoId);

	int addPraise(Long videoId, String openId, String nickName, String headUrl);

}
